<?php

namespace BoxShadow\UsersBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class RegistrationType extends AbstractType {
    
    public function buildForm(FormBuilderInterface $builder, array $options) {
        $builder
                ->add('users','boxshadow_usersbundle_users')
                ->add('termsAccepted', 'checkbox');
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'BoxShadow\UsersBundle\Form\Model\Registration'
        ));
    }
    
    public function getName() {
        return 'registration';
    }

//put your code here
}
